"""
NewGameCommand.py           
Author: Ryan Walters        
Date: 10-12-08                               
                             
This class is a command invoked from the menu.  Its
execute is utilized to reset all of the aspects of
the game.  All settings will need to be reset

$Id: NewGameCommand.py 326 2008-10-17 02:23:55Z malerba89 $
"""
from Command import Command

class NewGameCommand(Command):

    #players is a list of players that should be notified when this commans
    #is executed
    def __init__(self, gameController, players):
        self.gc = gameController
        self.players = players

    #goes to the gameController's display of the NewGameInput
    def execute(self):
        for player in self.players:
            player.handleCommandExecuted('new')
        self.gc.displayNewGameInput()
    
